package com.tulingxueyuan.mall.modules.oms.mapper;

import com.tulingxueyuan.mall.modules.oms.model.OmsOrderReturnApply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tulingxueyuan.mall.modules.oms.model.dto.OmsOrderReturnApplyExampleDTO;
import com.tulingxueyuan.mall.modules.oms.model.dto.OmsOrderReturnApplyResultDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 订单退货申请 Mapper 接口
 * </p>
 *
 * @author zhaofuhao
 * @since 2022-03-03
 */
@Repository
public interface OmsOrderReturnApplyMapper extends BaseMapper<OmsOrderReturnApply> {
    /**
     * 获取申请详情
     */
    OmsOrderReturnApplyResultDTO getDetail(@Param("id")Long id);

    boolean updateByPrimaryKeySelective(OmsOrderReturnApply returnApply);

    boolean deleteByExample(OmsOrderReturnApplyExampleDTO example);
}
